/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hycreate.platform.modules.crm.findcustomer;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hycreate.platform.common.persistence.DataEntity;

/**
 * 客户查询Entity
 * @author 方志钧
 * @version 2016-12-05
 */
public class FindCustomer extends DataEntity<FindCustomer> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 公司名
	private String address;		// 地址
	private String content;		// 公司简介
	private Date lastContact;		// 上次联系时间
	private String userid;		// 被选中
	private String statusId;		// 状态
	
	private String trade;	//行业名（仅限客户搜索时使用）
	
	private String createUser;	//创建用户的名字
	private String updateUser;	//修改用户的名字
	
	private String website;
	private String province;   //省份
	private String city;   //市
	
	
	public String getWebsite() {
		return website;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public String getTrade() {
		return trade;
	}

	public void setTrade(String trade) {
		this.trade = trade;
	}

	public FindCustomer() {
		super();
	}

	public FindCustomer(String id){
		super(id);
	}
	
	@Length(min=1, max=100, message="公司名长度必须介于 1 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=150, message="地址长度必须介于 0 和 150 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=500, message="公司简介长度必须介于 0 和 500 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getLastContact() {
		return lastContact;
	}

	public void setLastContact(Date lastContact) {
		this.lastContact = lastContact;
	}
	
	@Length(min=0, max=64, message="被选中长度必须介于 0 和 64 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=0, max=64, message="状态长度必须介于 0 和 64 之间")
	public String getStatusId() {
		return statusId;
	}

	public void setStatusId(String statusId) {
		this.statusId = statusId;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	
}